<style type="text/css">


    .table-responsive .table>tbody>tr>td {
        text-align: center;
        vertical-align: middle;
        color: #676767;
    }


    .table-bordered {
        border: 1px solid #e8edf0;
    }

    .table-bordered>thead>tr>th,
    .table-bordered>tbody>tr>th,
    .table-bordered>tfoot>tr>th,
    .table-bordered>thead>tr>td,
    .table-bordered>tbody>tr>td,
    .table-bordered>tfoot>tr>td {
        border: 1px solid #e8edf0;
    }

    .table thead tr {
        background: #f8f9fb;
    }

    .order_price span {
        width: 70px;
        display: inline-block;
        text-align: right;
    }
</style>


<div class="row">
    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">订单信息</div>
            <div class="panel-body">
                <table class="table table-striped">
                    <tbody>
                    <tr>
                        <td>订单编号</td>
                        <td>{$row.order_no}</td>
                    </tr>
                    <tr>
                        <td>房屋标题</td>
                        <td>{$row.house_title}</td>
                    </tr>
                    <tr>
                        <td>订单类型</td>
                        <td>{$row.order_type_name}</td>
                    </tr>
                    <tr>
                        <td>入住日期</td>
                        <td>{$row.checkin_date}</td>
                    </tr>
                    <tr>
                        <td>离店日期</td>
                        <td>{$row.leave_date}</td>
                    </tr>
                    <tr>
                        <td>入住天数</td>
                        <td>{$row.days}</td>
                    </tr>
                    {if $row.order_type==2}
                    <tr>
                        <td>拼房的房间</td>
                        <td>{$bed_name}</td>
                    </tr>
                    {/if}
                    <tr>
                        <td>支付方式</td>
                        <td>{$row.pay_type}</td>
                    </tr>
                    <tr>
                        <td>买家留言</td>
                        <td>{$row.buyer_message}</td>
                    </tr>

                    <tr>
                        <td>用户订单状态</td>
                        <td>{$row.order_status_name}</td>
                    </tr>
                    {if $row.pay_time}
                    <tr>
                        <td>支付时间</td>
                        <td>{$row.pay_time|datetime}</td>
                    </tr>
                    {/if}
                    {if $row.cancel_time}
                    <tr>
                        <td>取消时间</td>
                        <td>{$row.cancel_time|datetime}</td>
                    </tr>
                    {/if}
                    {if $row.user_checkin_time}
                    <tr>
                        <td>用户入住时间</td>
                        <td>{$row.user_checkin_time|datetime}</td>
                    </tr>
                    {/if}
                    {if $row.user_checkout_time}
                    <tr>
                        <td>用户退房时间</td>
                        <td>{$row.user_checkout_time|datetime}</td>
                    </tr>
                    {/if}
                    {if $row.user_complete_time}
                    <tr>
                        <td>用户完成时间</td>
                        <td>{$row.user_complete_time|datetime}</td>
                    </tr>
                    {/if}
                    <tr>
                        <td>业主订单状态</td>
                        <td>{$row.owner_order_status_name}</td>
                    </tr>
                    {if $row.owner_checkin_time}
                    <tr>
                        <td>业主入住时间</td>
                        <td>{$row.owner_checkin_time|datetime}</td>
                    </tr>
                    {/if}
                    {if $row.owner_checkout_time}
                    <tr>
                        <td>业主退房时间</td>
                        <td>{$row.owner_checkout_time|datetime}</td>
                    </tr>
                    {/if}
                    {if $row.owner_complete_time}
                    <tr>
                        <td>业主完成时间</td>
                        <td>{$row.owner_complete_time|datetime}</td>
                    </tr>
                    {/if}
                    <tr>
                        <td>提交时间</td>
                        <td>{$row.createtime|datetime}</td>
                    </tr>
                    {if $row.refund_status==1}
                    <tr>
                        <td>退款状态</td>
                        <td>退款成功</td>
                    </tr>
                    <tr>
                        <td>退款金额</td>
                        <td>{$row.refund_money}</td>
                    </tr>
                    <tr>
                        <td>退款手续费</td>
                        <td>{$row.refund_service_money}</td>
                    </tr>
                    {/if}
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">金额信息</div>
            <div class="panel-body">
                <table class="table table-striped">
                    <tbody>
                    <tr>
                        <td>订单总金额</td>
                        <td>¥{$row.order_money}</td>
                    </tr>
                    <tr>
                        <td>房屋总金额</td>
                        <td>¥{$row.house_money}</td>
                    </tr>
                    {if $row.order_type==3}
                    <tr>
                        <td>换房管理费</td>
                        <td>¥{$row.management_money}</td>
                    </tr>
                    <tr>
                        <td>换房水电费</td>
                        <td>¥{$row.hydropower_money}</td>
                    </tr>
                    <tr>
                        <td>换房用户使用积分</td>
                        <td>{$row.use_score}</td>
                    </tr>
                    <tr>
                        <td>换房业主得到积分</td>
                        <td>{$row.earn_score}</td>
                    </tr>
                    {/if}
                    <tr>
                        <td>配套服务总金额</td>
                        <td>¥{$row.complement_money}</td>
                    </tr>
                    <tr>
                        <td>优惠券优惠金额</td>
                        <td>¥{$row.coupon_money}</td>
                    </tr>
                    <tr>
                        <td>折扣金额</td>
                        <td>¥{$row.discount_money}</td>
                    </tr>
                    <tr>
                        <td>付款金额</td>
                        <td>¥{$row.pay_money}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">每日价格</div>
            <div class="panel-body">
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th class="text-center">
                            <div class="th-inner">日期</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">原价</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">折扣价</div>
                        </th>
                        {if $row.order_type==2}
                        <th class="text-center">
                            <div class="th-inner">卧室名称</div>
                        </th>
                        {/if}
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="date_list" id="vo"}
                    <tr>
                        <td class="text-center">{$vo.date}</td>
                        <td class="text-center">{$vo.price}</td>
                        <td class="text-center">{$vo.discount_price}</td>
                        {if $row.order_type==2}
                        <td class="text-center">{$vo.bed_name}</td>
                        {/if}
                    </tr>
                    {/volist}
                    </tbody>

                </table>

            </div>
        </div>
    </div>

    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">入住人</div>
            <div class="panel-body">
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th class="text-center">
                            <div class="th-inner">姓名</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">身份证号</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">手机号</div>
                        </th>
                        {if $row.order_type==2}
                        <th class="text-center">
                            <div class="th-inner">卧室名称</div>
                        </th>
                        {/if}
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="occupant_list" id="vo"}
                    <tr>
                        <td class="text-center">{$vo.name}</td>
                        <td class="text-center">{$vo.id_card_num}</td>
                        <td class="text-center">{$vo.mobile}</td>
                        {if $row.order_type==2}
                        <td class="text-center">{$vo.bed_name}</td>
                        {/if}
                    </tr>
                    {/volist}
                    </tbody>

                </table>

            </div>
        </div>
    </div>

    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">配套服务</div>
            <div class="panel-body">
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th class="text-center">
                            <div class="th-inner">服务</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">数量</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">单价</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">总价</div>
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="complement" id="vo"}
                    <tr>
                        <td class="text-center">{$vo.name} {$vo.unit}</td>
                        <td class="text-center">{$vo.num}</td>
                        <td class="text-center">{$vo.single_money}</td>
                        <td class="text-center">{$vo.total_money}</td>
                    </tr>
                    {/volist}
                    </tbody>

                </table>

            </div>
        </div>
    </div>

    {if $complain}
    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">投诉内容</div>
            <div class="panel-body">
                <table class="table table-striped">
                    <tbody>
                    <tr>
                        <td>投诉原因</td>
                        <td>{$complain.reason}</td>
                    </tr>
                    <tr>
                        <td>补充说明</td>
                        <td>{$complain.explain}</td>
                    </tr>
                    <tr>
                        <td>凭证</td>
                        {if $complain.images}
                        <td>
                        {foreach $complain.images as $index=>$vo}
                            <img class="img-sm img-center" data-tips-image src="{$vo|cdnurl|htmlentities}"></a>
                        {/foreach}
                        </td>
                        {/if}

                    </tr>
                    <tr>
                        <td>状态</td>
                        {if $complain.status==0}
                        <td>处理中</td>
                        {/if}
                        {if $complain.status==1}
                        <td>处理完成</td>
                        {/if}
                        {if $complain.status==2}
                        <td>撤回</td>
                        {/if}
                    </tr>
                    <tr>
                        <td>提交时间</td>
                        <td>{$complain.createtime|datetime}</td>
                    </tr>

                    </tbody>
                </table>
            </div>
        </div>
    </div>
    {if $dispose_list}
    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">投诉回复记录</div>
            <div class="panel-body">
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th class="text-center">
                            <div class="th-inner">身份</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">补充说明</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">凭证</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">操作时间</div>
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="dispose_list" id="vo"}
                    <tr>
                        <td class="text-center">
                            {$vo.identity=='user'?'用户':'业主'}
                            {if $vo.is_solve==1}
                            /已解决
                            {/if}
                        </td>
                        <td class="text-center">{$vo.content}</td>

                        <td class="text-center">
                            {if $vo.images}
                            {foreach $vo.images as $index=>$v}
                            <img class="img-sm img-center" data-tips-image src="{$v|cdnurl|htmlentities}"></a>
                            {/foreach}
                            {/if}
                        </td>

                        <td class="text-center">{$vo.createtime|datetime}</td>
                    </tr>
                    {/volist}
                    </tbody>

                </table>

            </div>
        </div>
    </div>
    {/if}
    {/if}
    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">操作记录</div>
            <div class="panel-body">
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th class="text-center">
                            <div class="th-inner">身份</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">流程</div>
                        </th>
                        <th class="text-center">
                            <div class="th-inner">操作时间</div>
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="action_log" id="vo"}
                    <tr>
                        <td class="text-center">{$vo.identity=='user'?'用户':'业主'}</td>
                        <td class="text-center">{$vo.status_name}</td>
                        <td class="text-center">{$vo.createtime|datetime}</td>
                    </tr>
                    {/volist}
                    </tbody>

                </table>

            </div>
        </div>
    </div>
</div>

